package com.qf.common.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import lombok.Data;

@Data
@ApiModel(description = "患者实体类")
@TableName("patient")
public class Patient extends Model<Patient> {

    @TableId(type = IdType.AUTO)
    @ApiModelProperty(name="id", value="患者id")
    private Integer id;

    @ApiModelProperty(name="userId", value="关联用户id")
    private Integer userId;

    @ApiModelProperty(name="bloodType", value="血型")
    private String bloodType;

    @ApiModelProperty(name="allergies", value="过敏史")
    private String allergies;

    @ApiModelProperty(name="medicalHistory", value="病历")
    private String medicalHistory;
}
